@echo off
cls

@echo Uninstalling LitwareHR Sample Application
cd %1
rem Update Execution Policy to be unrestricted by default
%WINDIR%\system32\windowspowershell\v1.0\powershell -Command Set-ExecutionPolicy unrestricted
SET PATH=c:\program files\microsoft sql server\90\tools\binn;%PATH%

call "0 - Remove desktop shortcuts.bat"
call "1 - Remove Provisioning User.bat"
call "2 - Unconfigure IIS.bat"
call "3 - CleanUp Certificates.bat"
call "4 - Unconfigure Hosts.bat"
call "5 - Remove Identity Store.bat"
call "6 - Remove Databases.bat"
call "7 - Remove database alias.bat"
call "8 - Remove websites.bat"

@echo Finished Uninstalling LitwareHR Sample Application